aio: store event at final iocb_put()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Mar 2019 00:49:55 +0000 (19:49 -0500)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
commit10ccc95388b0418d4b2de2e7852b5ff8e925650d
tree1f9f55fe255c3e8319744178c450ad81558b2eac
parent8ed88278be7d2c5e8749e246ff570e5fda1a5c85
aio: store event at final iocb_put()

commit 2bb874c0d873d13bd9b9b9c6d7b7c4edab18c8b4 upstream.

Instead of having aio_complete() set ->ki_res.{res,res2}, do that
explicitly in its callers, drop the reference (as aio_complete()
used to do) and delay the rest until the final iocb_put().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name 0013-aio-store-event-at-final-iocb_put.patch
fs/aio.c